package com.dimples.dd.system.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/7/9
 */
@Schema(description ="菜单树对象")
@Data
public class MenuTreeVO {

    @Schema(description = "菜单ID")
    private Long id;

    @Schema(description = "父菜单 ID")
    private Long parentId;

    @Schema(description = "菜单名称")
    private String menuName;

    @Schema(description = "权限标识")
    private String permission;

    @Schema(description = "菜单类型")
    private Integer menuType;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "父节点路径")
    private String treePath;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "菜单图标")
    private Integer iconType;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "路由名称")
    private String routeName;

    @Schema(description = "路由路径")
    private String routePath;

    @Schema(description = "外链")
    private String href;

    @Schema(description = "外链打开方式(1:内部窗口打开;2:浏览器窗口打开)")
    private Integer hrefOpenType;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "i18nKey")
    private String i18nKey;

    @Schema(description = "显示状态")
    private Boolean hideInMenu;

    @Schema(description = "进入该路由时激活的菜单键")
    private String activeMenu;

    @Schema(description = "跳转路径")
    private String redirect;

    @Schema(description = "是否开启页面缓存")
    private Boolean keepAlive;

    @Schema(description = "支持多页签")
    private Boolean multiTab;

    @Schema(description = "固定在页签中的序号")
    private Integer fixedIndexInTab;

    @Schema(description = "是否始终显示")
    private Boolean alwaysShow;

    @Schema(description = "子级")
    private List<MenuTreeVO> children;

}
